{% load url from future %}
{% block content %}
<div id="connexion-form" title="Connexion">
{% if form.errors %}
	<p>Your username and password didn't match. Please try again.</p>
{% endif %}
	<form method="post" action="/login">{% csrf_token %}
		<fieldset>
			<label for="pseudo">pseudo</label><br/>
			<input type="text" name="username" id="pseudo" value="" class="text ui-widget-content ui-corner-all" /><br/><br/>
			<label for="password">Password</label><br/>
			<input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" /><br/><br/>
		</fieldset>
		
		<a href="/accounts/register/" rel="#overlay" class="link" style="text-decoration:none">
			Créer un nouveau compte?
		</a><br/>
		<!-- overlayed element -->
		<div class="apple_overlay" id="overlay">
			<!-- the external content is loaded inside this tag -->
			<div class="contentWrap"></div>
		</div>	
		<input id="create-user" type="submit" value="Connexion" />
		<input type="hidden" name="next" value="{{ next }}" />
	</form>
</div>

<button id="connect-user" class="button-connexion">Connexion</button>
{% endblock %}





